<template>
  <view>
    <!-- 结算 -->
    <text>您本次购买的菜单为</text>
    <view v-for="item in buy">
      <view>
        <image :src="item.productAvatar"></image>
        <text>{{ item.productName }}</text>
        <text>{{ item.productPrice }}</text>
        <text>{{ item.count }}</text>
      </view>
    </view>
  </view>
</template>

<script>

export default {
  components: {},
  data() {
    return {
      buy: []
    }
  },
  methods: {},
  onLoad(options) {
    this.buy = JSON.parse(decodeURIComponent(options.buy))
    console.log(this.buy)
  },
}
</script>

<style>

</style>
